home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsITreeContentView.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITreeContentView.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITreeContentView_h__
  6. #define __gen_nsITreeContentView_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIDOMElement_h__
  14. #include "nsIDOMElement.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsITreeContentView */
  23. #define NS_ITREECONTENTVIEW_IID_STR "5ef62896-0c0a-41f1-bb3c-44a60f5dfdab"
  24.  
  25. #define NS_ITREECONTENTVIEW_IID \
  26.   {0x5ef62896, 0x0c0a, 0x41f1, \
  27.     { 0xbb, 0x3c, 0x44, 0xa6, 0x0f, 0x5d, 0xfd, 0xab }}
  28.  
  29. class NS_NO_VTABLE nsITreeContentView : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITREECONTENTVIEW_IID)
  33.  
  34.   /**
  35.    * Retrieve the content item associated with the specified index.
  36.    */
  37.   /* nsIDOMElement getItemAtIndex (in long index); */
  38.   NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) = 0;
  39.  
  40.   /**
  41.    * Retrieve the index associated with the specified content item.
  42.    */
  43.   /* long getIndexOfItem (in nsIDOMElement item); */
  44.   NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSITREECONTENTVIEW \
  50.   NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval); \
  51.   NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSITREECONTENTVIEW(_to) \
  55.   NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) { return _to GetItemAtIndex(index, _retval); } \
  56.   NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) { return _to GetIndexOfItem(item, _retval); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSITREECONTENTVIEW(_to) \
  60.   NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAtIndex(index, _retval); } \
  61.   NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfItem(item, _retval); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsTreeContentView : public nsITreeContentView
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSITREECONTENTVIEW
  72.  
  73.   nsTreeContentView();
  74.  
  75. private:
  76.   ~nsTreeContentView();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsTreeContentView, nsITreeContentView)
  84.  
  85. nsTreeContentView::nsTreeContentView()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsTreeContentView::~nsTreeContentView()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* nsIDOMElement getItemAtIndex (in long index); */
  96. NS_IMETHODIMP nsTreeContentView::GetItemAtIndex(PRInt32 index, nsIDOMElement **_retval)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* long getIndexOfItem (in nsIDOMElement item); */
  102. NS_IMETHODIMP nsTreeContentView::GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsITreeContentView_h__ */
  112.